FROM anapsix/alpine-java:8_server-jre_unlimited

MAINTAINER Wang Jing

RUN mkdir -p /wjboot/xxljob
RUN mkdir -p /wjboot/xxljob/logs

WORKDIR /wjboot/xxljob

ENV TZ=PRC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

EXPOSE 9100

ADD ./target/base-xxl-job.jar ./job.jar

ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "job.jar"]
